import request from "./request"

const roleApi = {
    all : (data={})=>{
        return request.post('/admin/rbac/role/all',data)
    },
    add:(data)=>{
        return request.post('/admin/rbac/role/add',data)
    },
    update:(data)=>{
        return request.post('/admin/rbac/role/update',data)
    },
    detail:(id)=>{
        return request.post('/admin/rbac/role/detail',{id})
    },
    bindRoutes:(data)=>{
        return request.post('/admin/rbac/role/bindRoutes',data)
    },
    del:(ids)=>{
        return request.post('/admin/rbac/role/del',{
            ids
        })
    }
}

export default roleApi